#include <cstdio>
#include <cstdint>
#include "gtest/gtest.h"

void printSumPinyin(){
    char c;
    uint32_t sum = 0;
    char* digitalPinyin[] = {"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
    //在读取每个数字的同时，就把加和做了
    while( (c = getchar()) != EOF && c != '\n') {//非回车符
        sum += c - '0';
    }
    //百位
    if(sum >= 100 && sum < 1000){
        printf("%s ",digitalPinyin[sum / 100]);
    }

    //十位
    printf("%s ",digitalPinyin[sum / 10 % 10]);

    //个位
    printf("%s ",digitalPinyin[sum % 10]);
}

TEST(TestSumPinyin, printSumPinyin){
  printSumPinyin();
}